const Koa = require('koa');
const compose = require('koa-compose');
const KoaStatic = require('koa-static');
const MD = require('./middleware/index');
const config = require('./config//index.json');

const app = new Koa();

app.use(KoaStatic(__dirname+'/dist'))
app.use(compose(MD));
app.listen(config.port);

console.log('项目已启动，请访问=> localhost:'+config.port);
